import React, { useContext } from 'react'
import { Obj1Context, Obj2Context } from "./contextTest"

const Child2 = () => {
    const obj1 = useContext(Obj1Context)
    const obj2 = useContext(Obj2Context)

    return (
        <div>
            <span>{obj1.id}</span>
            <span>{obj2.id}</span>
        </div>
    )
}

export default Child2
